package com.crm.domain;


import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

@Data
@AllArgsConstructor
@NoArgsConstructor
/**
 * 线索和商机配置通用规则类
 */
public class Rule {

    public static final String MAX_NUMBER_KEY = "maxNumber:";

    public static final String RULE_TYPE_CLUE = "0";
    public static final String RULE_TYPE_BUSINESS = "1";

    private Long id;
    //回收时间(数值)
    private Integer limitTime;
    //回收时间单位
    private String limitTimeType;
    //回收提醒时间(数值)
    private Integer warnTime;
    //回收提醒时间单位
    private String warnTimeType;
    //重复捞取时间限制
    private Integer repeatGetTime;
    //单位
    private String repeatType;
    //每个user的线索/商机最大持有数
    private Integer maxNunmber;
    //0:线索 1:商机
    private String type;
    private String createBy;
    private String updateBy;
    private LocalDateTime createTime;
    private LocalDateTime updateTime;
}
